#!/bin/bash
# Copyrignt (c) xuzeshui.com. All Rights Reserved.
# Author: Xiaobao Zeng<zengxiaobao@skyworth.com>
# Created Time: 2016-08-10 13:59:46
# Last Modified: 2016-08-13 18:41:49
# File Name: create.sh
# Description: 

host="http://127.0.0.1:8193"
appkey="27a317d8489d40809572a5af28630e94"

position=2
seq="4,1,2,3"
byvalue="4"
bywhat="4"
dowhat="4"
package="4"
params="4"
atype="4"
backgroud="4"
columns=1
rows=1
title="4"
size="4"
desc="4"

sign=`echo -n "appkey${appkey}adop.app.doubimeizhi.com" | md5sum | awk '{print $1}'`

curl -v -d '{"channel":1, "position":5, "seqno":1, "newcp":0,"byvalue":"4", "bywhat":"4", "dowhat":"4", "package":"4", "params":"p1#p2", "type":"shop", "bg":"4",  "columns":1, "rows":1, "title":"4", "size":"4", "desc":"4", "price":999, "selltype":1}'  "${host}/tvheadpage/create?appkey=${appkey}&sign=${sign}"
